using System.Windows;
using System.Windows.Controls;

namespace HandyControlUIDemo.UserControl;

public partial class UserControl1 : System.Windows.Controls.UserControl
{
    public UserControl1()
    {
        InitializeComponent();
        Loaded += current_loaded;
    }

    private async void current_loaded(object sender, RoutedEventArgs e)
    {
        Console.WriteLine("UserControl1 loaded start");
        await Task.Delay(3000);
        Console.WriteLine("UserControl1 loaded over");
    }
}